如何判別r1(RadioButton 1)被勾選或取消勾選後的事件 語法:if((r1.isChecked())==true){}esle{} 範例: RadioButton r1 = (RadioButton) findViewById(R.id. RadioButton1); if(r1.isChecked()==true) { t1.setText("選修視窗程式設計"); } else { t1.setText("取消 選修視窗程式設計"); }